	<div id="content">
		<div class="main">
			<?php if (get('ini_ad1')) echo "<div class='ad1'>".get('ini_ad1_code')."</div>"?>
			<div class="new-post">
<?php
get('ini_igo_sticky') ? $sticky = 1 : $sticky = 0;
get('ini_pre_posts') ? $num = get('ini_post_num') : $num = '';
if(!get('ini_mark')) :
query_posts( '&showposts='.$num.'&caller_get_posts='.$sticky.'&cat='.get('ini_cat') );
while (have_posts()) : the_post();
?>
				<article class="new-post-item">
					<section class="new-post-content"<?php if(get('ini_no_thumb')) echo " style=height:180px"?>>
						<?php get_img(300, 160)?>
						<h2><?php ini_title(1,1,1)?></h2>
						<div class="post-info"><?php echo '<span><i class="icon-calendar"></i>&nbsp;'; the_category(', '); echo '</span>'; if( get('ini_rate') ) { fancyratings(); } else { echo '<span><i class="icon-time"></i>&nbsp;<time datetime="'.get_the_time('Y-m-d').'">'.get_the_time('Y-m-d').'</time></span><span><i class="icon-eye-open"></i>&nbsp;'.get_post_views($post->ID).' ℃</span>'; } echo edit_post_link('编辑文章', '<span><i class="icon-edit"></i>&nbsp;', '</span>');?> </div>
						<div class="post-entry">
							<?php ini_excerpt(150)?>
						</div>
					</section>
				</article>
<?php endwhile;endif?>
<?php wp_reset_query()?>
				<div class="clear"></div>
				<a class="continue" href="<?php echo get_pagenum_link(2)?>">继续阅读 →</a>
			</div>
		</div>
		<?php if( get('ini_ad2') ) echo "<div class='main'><div class='ad2'>".get('ini_ad2_code')."</div></div>"?>

<?php if( get('ini_cate') && $obj_key==$ini_key ):?>
		<div class="cat-post">
			<div class="clear">
				<div class="cat-post-left">
<?php
if( !get('ini_cat_left') || get('ini_mark') ) {
	echo '亲，请到后台 » <a href="/wp-admin/themes.php?page=initial-options">Initial 设置</a> » 页面模块 » 设置首页左侧分类ID';
} else {
	$display_categories = explode(',', get('ini_cat_left') );
	echo category_post( $display_categories );
}
?>
				</div>
				<div class="cat-post-right">
<?php
if( !get('ini_cat_right') || get('ini_mark') ) {
	echo '亲，请到后台 » <a href="/wp-admin/themes.php?page=initial-options">Initial 设置</a> » 页面模块 » 设置首页右侧分类ID';
} else {
	$display_categories = explode(',', get('ini_cat_right') );
	echo category_post( $display_categories );
}
?>
				</div>
			</div>
		</div>
<?php endif?>
	</div>

<?php
function category_post( $display_categories ){
	global $post;
	foreach ( $display_categories as $category ){
		query_posts( 'showposts=1&cat='.$category )?>
					<div class="cat-post-item bd">
						<div class="cat-title"><a href="<?php echo get_category_link($category)?>"><?php single_cat_title(); ?></a></div>
						<div class="cat-post-list">
<?php while (have_posts()) : the_post()?>
							<article <?php if(get('ini_no_thumb')) echo "style=height:86px"?>>
								<?php echo get_img(108,108)?>
								<h2 class="cat-post-title"><?php ini_title(0,1,1)?></h2>
								<?php ini_excerpt(120)?>
							</article>
<?php endwhile; ?>
<?php wp_reset_query()?>

<?php
get('ini_cat_num') ? $cat_num = get('ini_cat_num') : $cat_num = 6;
query_posts( 'showposts='.$cat_num.'&cat='.$category.'&offset=1' );
?>
							<ul>
<?php while (have_posts()) : the_post()?>
								<li><time><?php the_time('m/d') ?></time><a class="post-title" href="<?php the_permalink() ?>" <?php if("无标题"!=get('ini_cat_title')){ echo 'title="';if (get('ini_cat_title')=="预览内容"){ ini_excerpt(120); } else { the_title(); } echo '"';}?>><?php the_title()?></a></li>
<?php endwhile?>
<?php wp_reset_query()?>
							</ul>
						</div>
					</div>
<?php }
}